<div class="book_charts">
 <?php if(!isset($activenav)) $activenav="newmsg";?>
 <?php if($activenav=="order"){?>
 <div class="mark"><a href="<?=site_url()?>/user/my_order">我的订单</a></div><hr>
  <?} else{?>
 <a href="<?=site_url()?>/user/my_order">我的订单</a><hr>
 <?php } if($activenav=="saleposts"){?>
 <div class="mark"><a href="<?=site_url()?>/user/my_salepost">我出售的书籍</a></div><hr>
  <?} else{?>
 <a href="<?=site_url()?>/user/my_salepost">我出售的书籍</a><hr>
<?php } if($activenav=="dealedsaleposts"){?>
 <div class="mark"><a href="<?=site_url()?>/user/my_dealedsalepost">已卖出的书籍</a></div><hr>
  <?} else{?>
 <a href="<?=site_url()?>/user/my_dealedsalepost">已卖出的书籍</a><hr>
  <?php } if($activenav=="wantedposts"){?>
 <div class="mark"><a href="<?=site_url()?>/user/my_wantedpost">我求购的书籍</a></div><hr>
 <?} else{?>
 <a href="<?=site_url()?>/user/my_wantedpost">我求购的书籍</a><hr>
<?php } if($activenav=="dealedwantedposts"){?>
 <div class="mark"><a href="<?=site_url()?>/user/my_dealedwantedpost">已买到的书籍</a></div><hr>
 <?} else{?>
 <a href="<?=site_url()?>/user/my_dealedwantedpost">已买到的书籍</a><hr>
<?php } if($activenav=="allmsg"){?>
 <div class="mark"><a href="<?=site_url()?>/user/read_msg_theme">收到短消息</a></div><hr>
 <?} else{?>
 <a href="<?=site_url()?>/user/read_msg_theme">收到短消息</a><hr>
 <?php } if($activenav=="sentmsg"){?>
 <div class="mark"><a href="<?=site_url()?>/user/read_send_msg_theme">已发短消息</a></div><hr>
<?} else{?>
 <a href="<?=site_url()?>/user/read_send_msg_theme">已发短消息</a><hr>
 <?php } if($activenav=="newmsg"){?>
 <div class="mark"><a href="<?=site_url()?>/user/edit_msg">发新短消息</a></div><hr>
 <?} else{?>
 <a href="<?=site_url()?>/user/edit_msg">发新短消息</a><hr>
 <?php } if($activenav=="profile"){?>
 <div class="mark"><a href="<?=site_url()?>/user/my_profile">个人资料</a></div>
 <?} else{?>
 <a href="<?=site_url()?>/user/my_profile">个人资料</a>
<?php }?>
</div>